package enums;

public enum State {
	preflop, flop, turn, river;

	public static int getIndex(State state){

		int index = -1;
		for (int i = 0; i < State.values().length; i++) {
			if(state == State.values()[i]){
				index = i;
				return index;
			}
		}		
		return index;
	}
}